<?php  
class Zend_View_Helper_CssHelper extends Zend_View_Helper_Abstract { 	
	/**
	 * This is method cssHelper
	 *
	 * @return mixed This is the return value description
	 *
	 */	
	function cssHelper($assets = array()) { 
		if(!is_array($assets)) {
			if(isset($assets)) {
				$assets	= array($assets);
			} else {
				$assets	= array();
			}
		}		
		
		foreach($assets as $css) {
			$css = $this->view->baseUrl('/') . '/assets/css/' . $css;
			//if (is_file($css)) { 
				$this->view->headLink()->appendStylesheet($css); 
			//}			
		}
		
		// default css for action
		//$request = Zend_Controller_Front::getInstance()->getRequest(); 
		//$fileUri = $this->view->baseUrl('/') . '/assets/css/' . 
		//	$request->getControllerName() . '/' . $request->getActionName() . '.css';
		
		return $this->view->headLink(); 		
	} 
}

?>